;A Hammerwich - Wood Green object
;--------------------------------------
;(c) Steve Green  2002.
;www.trainsimcentral.co.uk
;
;
;Please seek permission before using
;any files in your own route.
;

CreateMeshBuilder,
AddVertex,-120, -10.0, -10,
AddVertex,-120, 8, 0,
AddVertex,-20, 0, -0,
AddVertex,-20, 0, -6,
AddFace,0, 1, 2, 3,
SetColor,200,200,200,

GenerateNormals,

LoadTexture,Grass.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 4,

;rt fall
CreateMeshBuilder,
AddVertex,120, -10.0, -15,
AddVertex,120, 8, 0,
AddVertex,20, 0, -0,
AddVertex,20, 0, -6,
AddFace,3,2,1,0,
SetColor,200,200,200,

GenerateNormals,

LoadTexture,Grass2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1,4,

CreateMeshBuilder,
AddVertex,-120, -0.3, 30,
AddVertex,120, -0.3, 30,
AddVertex,120, -0.31, 0,
AddVertex,-120, -0.31, 0,
AddFace,0, 1, 2, 3,
SetColor,200,200,200,

GenerateNormals,

LoadTexture,Grass2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 15, 0,
SetTextureCoordinates,2,15, 5,
SetTextureCoordinates,3, 0, 5,

;Down hill

CreateMeshBuilder,
AddVertex,-120, -0.3, 0,
AddVertex,120, -0.3, 0,
AddVertex,120, -5.31, -10,
AddVertex,-120, -5.31, -10,
AddFace,0, 1, 2, 3,
SetColor,200,200,200,

GenerateNormals,

LoadTexture,Grass.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1,1,
SetTextureCoordinates,3, 0,1,



;Elevation Mesh

;Left
CreateMeshBuilder,
AddVertex,-120, 8, 30,
AddVertex,-20, -0.3, 30,
AddVertex,-20, -0.31, 0,
AddVertex,-120, 8, 0,
AddFace,0, 1, 2, 3,

GenerateNormals,

LoadTexture,Grass2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,

;Right
CreateMeshBuilder,
AddVertex,120, 8, 30,
AddVertex,20, -0.3, 30,
AddVertex,20, -0.31, 0,
AddVertex,120, 8, 0,
AddFace,3,2,1,0,
SetColor,170,170,170,

GenerateNormals,

LoadTexture,Grass2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,

;=================================


;fence left
CreateMeshBuilder,
AddVertex,-30, 1, 0,
AddVertex,-30, 2, 0,
AddVertex,-30, 2, 30,
AddVertex,-30, 1, 30,
AddFace,0,1,2,3,

GenerateNormals,

LoadTexture,fens_field.bmp,
SetTextureCoordinates,0,00,01,
SetTextureCoordinates,1,00,00,
SetTextureCoordinates,2,10,00,
SetTextureCoordinates,3,10,01,
SetDecalTransparentColor,000,000,000,

;=================================


;right fence
CreateMeshBuilder,
AddVertex,30, 1, 0,
AddVertex,30, 2, 0,
AddVertex,30, 2, 30,
AddVertex,30, 1, 30,
AddFace,3,2,1,0,
SetColor,256,256,256,000,

GenerateNormals,

LoadTexture,fens_field.bmp,
SetTextureCoordinates,0,00,01,
SetTextureCoordinates,1,00,00,
SetTextureCoordinates,2,10,00,
SetTextureCoordinates,3,10,01,
SetDecalTransparentColor,000,000,000,



CreateMeshBuilder,
AddVertex,-30, 0.5, 10,
AddVertex,-30, 1.5, 10,
AddVertex,-31.5, 1.5, 9,
AddVertex,-31.5, 0.5, 9,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,sheep1.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-35, 1.3, 20,
AddVertex,-35, 2.3, 20,
AddVertex,-36.5, 2.3, 19,
AddVertex,-36.5, 1.3, 19,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,sheep2.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-43, 2.2, 15,
AddVertex,-43, 3.2, 15,
AddVertex,-44.5, 3.2, 14,
AddVertex,-44.5, 2.2, 14,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,sheep3.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,

